/**
 * 
 */
package cisx.hosted.servlets;

import com.google.code.cisx.gwt.client.components.login.LoginService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * Login Service to be used in hosted mode.
 * 
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @version $Id: LoginServiceHosted.java 262 2008-12-01 09:11:22Z rahul.thakur.xdev $
 * @since 1.0
 */
public class LoginServiceHosted extends RemoteServiceServlet implements LoginService {

  private static final long serialVersionUID = 217768661258789869L;

  @Override
  public String login(String username, String password) {
    if (null != username && null != password && username.equals("admin") && password.equals("admin123"))
      return SC_SUCCESS;
    return SC_FAILURE;
  }
}
